// select all cubes
polyForceUV -unitize ;

// select all cubes,
// ctrl+F12 to convert selection to UVs
// scale all UVs down to 1/3rd of the total UV space.
polyEditUV -pu 0.5 -pv 0.5 -su 0.333333 -sv 0.333333 ;

// for each cube, select the face, and move it to the proper place.
// upper left:
polyEditUV -u -0.333333 -v 0.333333 ;

// upper right:
polyEditUV -u 0.333333 -v 0.333333 ;

// lower left:
polyEditUV -u -0.333333 -v -0.333333 ;

// upper right:
polyEditUV -u 0.333333 -v -0.333333 ;
